/**
 * 
 */
package com.hfjyz.registration.dao;

import java.io.Serializable;
import java.util.List;

/**
 *
 */
public interface BaseDao<T, PK extends Serializable> {

	public T get(PK pk) throws Exception;

	public void delete(T entity) throws Exception;

	public void update(T entity) throws Exception;

	public PK add(T entity) throws Exception;

	public void updateAll(List<T> entities) throws Exception;

	public List<PK> addAll(List<T> entities) throws Exception;

	public void deleteAll(List<T> entities) throws Exception;

	public List<T> listAll() throws Exception;

}
